﻿namespace YK.Console.Business.DataDictItems;

/// <summary>
/// 创建
/// </summary>
public class CreateDataDictItemRequest : DataDictItemInput, IRequest<Guid> { }

/// <summary>
/// 编辑
/// </summary>
public class UpdateDataDictItemRequest:DataDictItemInput, IRequest<Guid> 
{
    /// <summary>
    /// 主键
    /// </summary>
    [Required]
    public Guid Id { get; set; }
}

/// <summary>
/// 删除
/// </summary>
public class DeleteDataDictItemRequest:IRequest<int>
{
    /// <summary>
    /// 主键
    /// </summary>
    [Required]
    public Guid Id { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="id"></param>
    public DeleteDataDictItemRequest(Guid id)
    {
        Id = id;
    }
}

/// <summary>
/// 列表查询
/// </summary>
public class DataDictItemSearchRequest : BaseFilter, IRequest<List<DataDictItemOutput>>
{
    /// <summary>
    /// 启用状态
    /// </summary>
    public EnabledStatusEnum? Enabled { get; set; }
}

/// <summary>
/// 分页查询
/// </summary>
public class DataDictItemPageRequest : PaginationFilter, IRequest<PaginationResponse<DataDictItemOutput>> { }